// ==UserScript==
// @name           Google Advanced Search Additional File Types
// @namespace      by Connum
// @description    adds the following filetypes to the file format dropdown list at Google's advanced search page: .swf, .txt, .php
// @include        http://*google.*/advanced_search*
// ==/UserScript==
// (c) Constantin Gro? (connum@gmail.com)
// use or modify it however you want, but please keep this notice with it!

var textareas = document.getElementsByTagName('option');
insertHere=textareas[49];
option = document.createElement('option');
option.value='swf';
option.text='Macromedia Flash (.swf)';
insertHere.parentNode.appendChild(option,insertHere);

var textareas = document.getElementsByTagName('option');
insertHere=textareas[50];
option = document.createElement('option');
option.value='txt';
option.text='Textfiles (.txt)';
insertHere.parentNode.appendChild(option,insertHere);

var textareas = document.getElementsByTagName('option');
insertHere=textareas[51];
option = document.createElement('option');
option.value='php';
option.text='PHP-sites only (.php)';
insertHere.parentNode.appendChild(option,insertHere);
